package com.chengqs.mapper;

import com.chengqs.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from user")
    List<User> findAll();

    @Select("select * from user where email=#{email}")
    User findByEmail(String email);
}
